<?php


namespace app\mall\model\Order;


use think\facade\Db;
use think\Model;

class OrderGoodsModel extends Model
{
    /**
     * 数据表名
     * @var string
     */
    protected $name = "order_goods";

    /**
     * 更新
     * @param $where
     * @param $save
     * @return int
     * @throws
     */
    public static function updateOrderGoodsWhere($where,$save)
    {
        $flag = Db::name('order_goods')->where($where)->update($save);
        return $flag;
    }



}